package com.example.mine_platform.service;


import com.example.mine_platform.pojo.dto.UserLoginDTO;
import com.example.mine_platform.pojo.dto.UserRegisterDTO;
import com.example.mine_platform.pojo.entities.User;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface UserService
{
    public List<User> findAll();
    void register(UserRegisterDTO userRegisterDTO);
    User login(UserLoginDTO userLoginDTO);


    public int update(User user);

    public User getById(Integer id);

    PageInfo<User> findBySearch(String userName, Integer pageSize, Integer pageNum);

}
